#include <stdio.h>

int main(void)
{
    float salary, tax;

    printf("Please enter the number of the salary: ");
    scanf("%f", &salary);

    if (salary < 750)
        tax = 0.01 * salary;
    else if (salary >= 750 & salary < 2250)
        tax = 7.5 + (salary - 750) * 0.02;
    else if (salary >= 2250 & salary < 3750)
        tax = 37.5 + (salary - 2250) * 0.03;
    else if (salary >= 3750 & salary < 5250)
        tax = 82.5 + (salary - 3750) * 0.04;
    else if (salary >= 5250 & salary < 7000)
        tax = 142.5 + (salary - 5250) * 0.05;
    else
        tax = 230 + (salary - 7000) * 0.06;
    
    printf("The tax is %.2f", tax);

    return 0;
}